package com.zzzy.server.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Schema(description = "登录请求")
@Data
public class LoginReq {

    @Schema(description = "用户名", example = "cs01")
    @NotBlank(message = "用户名不能为空")
    private String username;

    @Schema(description = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    @Schema(description = "验证码")
    @NotBlank(message = "验证码不能为空")
    private String verifyCode;

    @Schema(description = "验证码KEY,登录需携带此参数")
    @NotBlank(message = "验证码KEY不能为空")
    String verifyKey;
}
